package repository

import (
	"booksmart/book/internal/domain"
	"context"
	"time"
)

type MysqlJobRepository interface {
	Preempt(ctx context.Context) (domain.Job, error)
	Release(ctx context.Context, id int64) error
	Refresh(id int64) interface{}
	UpdateUtime(ctx context.Context, id int64) error
	UpdateNextTime(ctx context.Context, time time.Time, id int64) error
	Stop(ctx context.Context, id int64) error
}
